#include "stm32f10x.h"                  // Device header
#include <stdio.h>
#include "Serial.h"
#include "Delay.h"
#include <string.h>

int main(void)
{
	Serial_Init();
	while(1)
	{
		if(Serial_GetRxFlag()==1)//????????1,????????????
		{         
			if(strcmp(Serial_RxPacket,"t")==0)//????????????,
			{
				while(1)
				{
					Serial_SendString("hello windows!\n");
					Serial_Printf("\r\n");
					Delay_s(1);
					
					if(strcmp(Serial_RxPacket,"s")==0)
					{
						break;
					}
				}
				
			}
		}
		
	}
} 

